package com.spvs.job.mapper;

import com.spvs.job.domain.EquipUpkeepRecord;
import org.apache.ibatis.annotations.Param;


import java.util.List;

/**
 * 保养记录Mapper接口
 *
 * @author supervision
 * @date 2024-06-09
 */
public interface EquipUpkeepRecordMapper
{
    /**
     * 查询保养记录
     *
     * @param id 保养记录主键
     * @return 保养记录
     */
    public EquipUpkeepRecord selectEquipUpkeepRecordById(Long id);

    public EquipUpkeepRecord selectEquipUpkeepRecordByPlanId(Long id);

    public EquipUpkeepRecord selectEquipUpkeepRecordByCode(@Param("code") Long code, @Param("type") Integer type);

    /**
     * 查询保养记录列表
     *
     * @param equipUpkeepRecord 保养记录
     * @return 保养记录集合
     */
    public List<EquipUpkeepRecord> selectEquipUpkeepRecordList(EquipUpkeepRecord equipUpkeepRecord);

    /**
     * 新增保养记录
     *
     * @param equipUpkeepRecord 保养记录
     * @return 结果
     */
    public int insertEquipUpkeepRecord(EquipUpkeepRecord equipUpkeepRecord);

    /**
     * 修改保养记录
     *
     * @param equipUpkeepRecord 保养记录
     * @return 结果
     */
    public int updateEquipUpkeepRecord(EquipUpkeepRecord equipUpkeepRecord);

    /**
     * 删除保养记录
     *
     * @param id 保养记录主键
     * @return 结果
     */
    public int deleteEquipUpkeepRecordById(Long id);

    /**
     * 批量删除保养记录
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteEquipUpkeepRecordByIds(Long[] ids);
}
